package com.mangofactory.aop.configuration.tag
{
	import com.mangofactory.aop.configuration.AspectContainerBuilder;
	
	public class MetatagPolicyTagProcessor implements PolicyTagProcessor
	{
		public function MetatagPolicyTagProcessor()
		{
		}
		
		public function isForTag(tag:PolicyProviderTag):Boolean
		{
			return tag is MetatagAspectDefinition;
		}
		
		public function processTag(tag:PolicyProviderTag, builder:AspectContainerBuilder):void
		{
			var metatagPolicy:MetatagAspectDefinition = MetatagAspectDefinition(tag);
			builder.addMetatagAspect(metatagPolicy);
		}
	}
}